package com.ler.yrmall.basic;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Leron
 * @version 1.0
 */
@Data
public class Form implements Serializable {

    private Long pageNo = 1L;

    private Long pageSize = 10L;

    /**
     * 搜索关键字 会员昵称、商品名称等
     */
    private String keyword;

    /**
     * 状态
     */
    private Integer status;


    public <T> Page<T> getPage() {
        return new Page<>(this.getPageNo(), this.getPageSize());
    }
}
